<template>
  <div class="info">
    <div class="box2222" v-show="open">
      <diyclick @aaa='setopen' />
    </div>
    <div class="box">
      <div class="tab-lef">
        <div class="fri root">
          <el-button type="info" icon="el-icon-edit" @click="setopen"
            >编辑</el-button
          >
          <el-button
            type="success"
            icon="el-icon-circle-plus-outline"
            @click="setopen"
            >添加</el-button
          >
          <el-button type="danger" icon="el-icon-view" @click="setopen"
            >隐藏</el-button
          >
        </div>
        <div class="sed root">
          <el-button type="info" icon="el-icon-edit" @click="setopen"
            >编辑</el-button
          >
          <el-button
            type="success"
            icon="el-icon-circle-plus-outline"
            @click="setopen"
            >添加</el-button
          >
          <el-button type="danger" icon="el-icon-view" @click="setopen"
            >隐藏</el-button
          >
        </div>
        <div class="thir root">
          <el-button type="info" icon="el-icon-edit" @click="setopen"
            >编辑</el-button
          >
        </div>
      </div>
      <div class="tab-cen">
        <el-button style="background-color: rgb(77, 76, 76)"
          ><i class="el-icon-menu">选择模块</i></el-button
        >
        <el-button @click="cur = 0" :class="{ active: cur == 0 }"
          >轮播图</el-button
        >
        <el-button @click="cur = 1" :class="{ active: cur == 1 }"
          >功能栏</el-button
        >
        <el-button @click="cur = 2" :class="{ active: cur == 2 }"
          >导航栏</el-button
        >
      </div>
      <div class="tab-con">
        <div v-show="cur == 0">
          <div class="con_box">
            <p>轮播图</p>
            <el-button type="info" icon="el-icon-circle-plus" round
              >新增</el-button
            >
            <table>
              <tr>
                <th>名称</th>
                <th>缩略图片</th>
                <th>区块链接</th>
                <th>状态</th>
                <th>排序</th>
                <th>操作</th>
              </tr>
              <tr>
                <td>步数换活动</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3481.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>1</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>步数换活动</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3481.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>2</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>步数换活动</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3481.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>3</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>步数换活动</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3481.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>4</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>步数换活动</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3481.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>5</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div v-show="cur == 1">
          <div class="con_box two">
            <p>功能栏</p>
            <el-button type="info" icon="el-icon-circle-plus" round
              >新增</el-button
            >
            <table>
              <tr>
                <th>名称</th>
                <th>缩略图片</th>
                <th>区块链接</th>
                <th>状态</th>
                <th>排序</th>
                <th>操作</th>
              </tr>
              <tr>
                <td>9.9包邮</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3601.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>1</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>红包活动</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3602.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>2</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>新人礼</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3603.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>3</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>免单</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3604.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>4</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>男装</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3605.png"
                    alt=""
                  />
                </td>
                <td>分类：男装</td>
                <td><span class="el-icon-success"></span></td>
                <td>5</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>新人礼</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3603.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>3</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>免单</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3604.png"
                    alt=""
                  />
                </td>
                <td>page/home/...</td>
                <td><span class="el-icon-success"></span></td>
                <td>4</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
              <tr>
                <td>男装</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3605.png"
                    alt=""
                  />
                </td>
                <td>分类：男装</td>
                <td><span class="el-icon-success"></span></td>
                <td>5</td>
                <td>
                  <i class="el-icon-edit"></i><i class="el-icon-delete"></i>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div v-show="cur == 2">
          <div class="con_box thr">
            <p>导航栏</p>
            <el-button type="info" icon="el-icon-circle-plus" round
              >编辑</el-button
            >
            <table>
              <tr>
                <th>名称</th>
                <th>选中图片</th>
                <th>未选图片</th>
                <th>操作</th>
              </tr>
              <tr>
                <td>首页</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3661.png"
                    alt=""
                  />
                </td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3669.png"
                    alt=""
                  />
                </td>
                <td>
                  <i class="el-icon-edit"></i>
                </td>
              </tr>
              <tr>
                <td>分类</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3662.png"
                    alt=""
                  />
                </td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3670.png"
                    alt=""
                  />
                </td>
                <td>
                  <i class="el-icon-edit"></i>
                </td>
              </tr>
              <tr>
                <td>我的</td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3663.png"
                    alt=""
                  />
                </td>
                <td>
                  <img
                    src="https://www.pmdaniu.com/storages/98882/e18a726a6b96c1ca571dc2da895022c5-27391/images/%E9%AB%98%E4%BF%9D%E7%9C%9F%E4%BA%A4%E4%BA%92%EF%BC%88%E5%90%8E%E5%8F%B0%EF%BC%89/u3671.png"
                    alt=""
                  />
                </td>
                <td>
                  <i class="el-icon-edit"></i>
                </td>
              </tr>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import diyclick from "./ui/diy_click.vue";
export default {
  data() {
    return {
      cur: 0,
      open: false,
    };
  },
  components: {
    diyclick,
  },
  methods: {
    setopen() {
      this.open = !this.open;
      // console.log(this.open);
    },
  },
};
</script>

<style lang="scss" scoped>
* {
  margin: 0;
  padding: 0;
}
.info {
  width: 80vw;
  height: 70vh;
  // background-color: #f1f6fc;
  position: relative;
  top: -20px;
  left: -20px;
  margin-top: 30px;
  .box2222 {
    position: absolute;
    height: 100%;
    // background: #ddd;
    width: 100%;
  }
  .box {
    height: 100%;
    display: flex;
    justify-content: space-around;
    // background-color: #f1f6fc;
    // border-radius: 50px;
    .tab-lef {
      position: relative;
      width: 30vw;
      height: 70vh;
      flex: 2;
      background: url("../../assets/img/DIY.jpg") no-repeat center center;
      background-size: 80% 100%;

      .root,
      .box {
        width: 70%;
        height: 100px;
        line-height: 100px;
        position: absolute;
        left: 15%;
        &:hover {
          background-color: rgba(212, 212, 212, 0.8);
        }
      }
      .fri,
      .box {
        top: 22%;
        height: 120px;
        display: block;
      }
      .sed,
      .box {
        top: 42%;
        height: 120px;
        display: block;
      }
      .thir,
      .box {
        top: 90%;
        width: 70%;
        height: 40px;
        line-height: 40px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        display: block;
      }
    }
    .tab-cen {
      // flex: 1;
      display: flex;
      flex-flow: column;
      margin: 50px;
      .el-button:nth-child(1) {
        color: white;
      }
      .el-button {
        padding: 7px 20px;
        margin: 10px 0;
        background-color: gainsboro;
        color: black;
        border: none;
        &:hover {
          background-color: rgba(101, 153, 22, 0.493);
          color: white;
        }
      }
    }
    .tab-con {
      // height: 400px;
      padding: 0 20px;
      flex: 3;
      // background-color: #f1f6fc;
    }
    .con_box {
      width: 600px;
      border: 1px solid gray;
      position: relative;
      height: 330px;
      // background-color: white;
      p {
        background-color: grey;
        width: 90px;
        height: 40px;
        line-height: 40px;
        margin: 0 auto;
        color: white;
        font-size: 14px;
        border-bottom-right-radius: 5px;
        border-bottom-left-radius: 5px;
      }
      .el-button {
        padding: 5px;
        position: absolute;
        margin-top: 20px;
        left: 20px;
      }
      table {
        width: 5;
        // background-color: hotpink;
        margin-top: 50px;
        width: 100%;
        th {
          width: 60px;
          line-height: 40px;
        }
        td {
          width: 60px;
          line-height: 30px;
          justify-items: center;
          span {
            color: green;
          }
          i {
            width: 20px;
            padding: 2px;
            background-color: rgb(209, 208, 208);
            margin: 0 2px;
            border-radius: 2px;
          }
        }
      }
    }
    .two {
      border: 1px solid gray;
      height: 540px;
    }
    .thr {
      height: 280px;
      // line-height: 20px;
      border: 1px solid gray;
      img {
        width: 40px;
      }
    }
  }
}
</style>
